import axios from '../axios'

/*
 * 公告管理模块
 */

// 保存
export const save = (data) => {
    return axios({
        url: '/sysNotice/save',
        method: 'post',
        data
    })
}
// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/sysNotice/delete',
        method: 'post',
        data
    })
}
// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/sysNotice/findPage',
        method: 'post',
        data
    })
}

export const offline = (params) => {
  return axios({
      url: '/sysNotice/offline',
      method: 'get',
      params:{
        id:params
      }
  })
}

export const release = (params) => {
  return axios({
      url: '/sysNotice/release',
      method: 'get',
      params:{
        id:params
      }
  })
}

export const findList = () => {
  return axios({
      url: '/sysNotice/findList',
      method: 'get'
  })
}

export const findListByLimit = (params) => {
  return axios({
      url: '/sysNotice/findListByLimit',
      method: 'get',
      params: params
  })
}
